<template>
	<view>
		<subListItem :item="item" v-for="(item,index) in list" :key="index" ></subListItem>
		<view style="text-align: center; color: #808080; margin: 15rpx auto;">
			没有更多啦...
		</view>
	</view>
</template>

<script>
	import subListItem from "@/components/ui/page/subtract-list-item.vue"
	export default {
		components:{
			subListItem
		},
		data() {
			return {
				page:0,
				list:[]
			}
		},
		async onReachBottom() {
			this.page++
			var res = await this.$api.subtractInfoDone({page:this.page,size:10});
			res.data.content.forEach(e=>{
				this.list.push(e)
			})
			console.log(res)
		},
		async onShow() {
			var res = await this.$api.subtractInfoDone({page:0,size:10});
			console.log(res)
			this.list = res.data.content
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
